const arr = [1,2,3,4,5];
const arr2 = arr.map(item => ({item}));
console.log(arr);
arr2.map(item=>({item}));
console.log(arr);
arr.reduce((curr,item)=>(curr+item));